package request

import "go.didapinche.com/time"

type AlertRecordReq struct {
	GraphID     uint64   `json:"graph_id" form:"graph_id"`
	AppID       uint64   `json:"app_id" form:"app_id"`
	ApiID       uint64   `json:"api_id" form:"api_id"`
	DashboardID uint64   `json:"dashboard_id" form:"dashboard_id"`
	GraphIDS    []uint64 `json:"graph_ids" form:"graph_ids"`
	PageNum     int      `form:"page_num" json:"page_num,omitempty"`
	PageSize    int      `form:"page_size" json:"page_size,omitempty"`
	Start       string   `json:"start" form:"start"`
	End         string   `json:"end" form:"end"`
	StartTime   time.Time
	EndTime     time.Time
}

type AlertHistoryReq struct {
	GraphID     uint64 `json:"graph_id" form:"graph_id"`
	AppID       uint64 `json:"app_id" form:"app_id"`
	ApiID       uint64 `json:"api_id" form:"api_id"`
	DashboardID uint64 `json:"dashboard_id" form:"dashboard_id"`
	HostID      uint64 `json:"host_id" form:"host_id"`

	AppIDs       []uint64
	ApiIDs       []uint64
	DashboardIDs []uint64
	HostIDs      []uint64

	PageNum  int    `form:"page_num" json:"page_num,omitempty"`
	PageSize int    `form:"page_size" json:"page_size,omitempty"`
	Start    string `json:"start" form:"start"`
	End      string `json:"end" form:"end"`

	Query       string `json:"query" form:"query"`
	AlertStatus int    `json:"alert_status" form:"alert_status"`
	ClaimStatus int    `json:"claim_status" form:"claim_status"`
	AlertLevel  int    `json:"alert_level" form:"alert_level"`

	StartTime time.Time
	EndTime   time.Time
}
